@tailwind base;
@tailwind components;
@tailwind utilities;

::-webkit-scrollbar {
  width: 6px;
  height:6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #72BBFF;
  border-radius: 4px;
  right: 10px;
}

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;
  }
}
html, body, #__next {
  width: 100%;
  height: 100%;
}
body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
}
p, a, body {
  margin: 0;
  padding: 0
}
.ant-menu-dark {
  background: linear-gradient(0deg, rgba(24, 144, 255, 0.7), rgba(24, 144, 255, 0.7)), #FFFFFF;
}
.ant-layout .ant-layout-sider {
  background: linear-gradient(0deg, rgba(24, 144, 255, 0.7), rgba(24, 144, 255, 0.7)), #FFFFFF;
}
.ant-menu-dark .ant-menu-item-selected {
  background-color: #1890FF;
}
.ant-layout {
  background: #c5e3ff;
}
.ant-menu-inline .ant-menu-item {
  width: 220px;
  height: 48px;
  line-height: 48px;
  border-radius: 30px;
  font-size: 18px;
  color: #fff;
  margin-left: 16px;
  font-weight: bold;
}
.ant-menu-inline.ant-menu-root .ant-menu-submenu-title{
  height: 48px;
  line-height: 48px;
  border-radius: 30px;
  width: 220px;
}
.ant-menu-inline .ant-menu-submenu {
  margin-left: 12px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}

.ant-menu-sub .ant-menu-item .ant-menu-title-content {
  margin-left: 20px;
  font-size: 16px;
  color: #fff;
  font-weight: bold;
}
.ant-menu-sub .ant-menu-item {
  width: 220px;
  height: 34px;
  line-height: 34px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 10px;
}

.ant-menu-dark.ant-menu-inline .ant-menu-sub.ant-menu-inline {
  border-radius: 12px 0px 0px 12px;
  background: #3FA3FF;
}
.ant-menu-dark.ant-menu-inline .ant-menu-sub.ant-menu-inline li {
  padding-left: 34px!important;
}

.ant-menu-inline-collapsed .ant-menu-item {
  width: 73px;
  height: 48px;
  line-height: 60px;
  border-radius: 30px;
  padding: 0px 12px;
  transition: all .1s;
}
.ant-menu-inline-collapsed >.ant-menu-submenu>.ant-menu-submenu-title {
  width: 73px;
  height: 48px;
  line-height: 60px;
  border-radius: 30px;
  padding: 0px 12px;
  transition: all .1s;
}

.ant-menu-title-content {
  margin-left: 6px;
}
.my-layout {
  background: #c5e3ff;
  padding: 10px 10px 10px 0;
}

.ant-tooltip .ant-tooltip-inner {
  background-color: #1890FF;
  font-size: 16px;
}
.ant-tooltip .ant-tooltip-arrow:before {
  background: #1890FF;
}
.ant-menu-dark.ant-menu-submenu>.ant-menu {
  background: #1890FF;
  font-size: 16px;
  color: #fff;
  box-shadow: none;
}
.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item:not(.ant-menu-item-selected):hover, .ant-menu-dark>.ant-menu:not(.ant-menu-horizontal) .ant-menu-item:not(.ant-menu-item-selected):hover {
  background: #3fa3ff;
}
.ant-menu-submenu-popup .ant-menu-vertical .ant-menu-item {
  margin: 10px;
}
a, .ant-btn-link {
  color: #1890FF;
}
.ant-select-dropdown {
  padding: 15px 10px;
}
.btn-link {
  padding: 4px 0;
}
.table-operation {
  padding: 10px!important;
}
.ant-modal .ant-modal-close:hover {
  background-color: transparent;
}
.ant-btn:not(:disabled):focus-visible {
  outline: none;
}

.mymodal-wrap .ant-modal-content {
  padding: 0;
}
.mymodal-wrap .ant-modal-close {
  right: 20px;
}
.mymodal-wrap .ant-modal-body{
  padding: 0 40px;
}

.my-date-picker .ant-picker-input>input {
  color: #1890FF!important;
  font-weight: 700;
  text-align: center;
}

.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item:not(.ant-menu-item-selected):hover {
  background-color: #1890FF;
}

.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-submenu-title:hover {
  background-color: #1890FF;
}

.code-selector .ant-select-selector {
  color: #fff;
  border: 1px solid transparent !important;
  box-shadow: none!important;
}
.check-selector .ant-select-selector {
  color: #fff;
  border: 1px solid transparent !important;
  box-shadow: none!important;
}
.code-select-bg0 .ant-select-selector {
  background-color: #F25B54!important;
}
.code-select-bg1 .ant-select-selector {
  background-color: #FFA826!important;
}
.code-select-bg2 .ant-select-selector {
  background-color: #1890FF!important;
}
.check-select-bg0 .ant-select-selector {
  background-color: #FFF2E5!important;
  color: #FF7B00;
}
.check-select-bg1 .ant-select-selector {
  background-color: #E7F3FF!important;
  color: #1890FF;
}
.check-select-bg2 .ant-select-selector {
  background-color: #FDEEED !important;
  color: #F25B54;
}
.code-selector.ant-select-single.ant-select-show-arrow .ant-select-selection-item {
  padding-inline-end: 0;
}
.check-selector.ant-select-single.ant-select-show-arrow .ant-select-selection-item {
  padding-inline-end: 0;
}
.code-selector.ant-select-single.ant-select-open .ant-select-selection-item {
  color: #fff;
}

.check-select-bg0 .ant-select-selection-item {
  color: #FF7B00!important;
}
.check-select-bg1 .ant-select-selection-item {
  color: #1890FF!important;
}
.check-select-bg2 .ant-select-selection-item {
  color: #F25B54!important;
}

.env-box {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 30px;
  background: rgba(24, 144, 255, 0.05);
  color: #1890FF!important;
  font-size: 12px;
  margin-right: 10px;
}

.ant-table-column-sorter-up {
  color: #cccccc;
}
.ant-table-wrapper .ant-table-column-sorter-up.active {
  color: #5eb2ff;
}

.ant-table-column-sorter-down {
  color: #cccccc;
}

.ant-table-wrapper .ant-table-column-sorter-down.active {
  color: #5eb2ff;
}

.ant-modal-content .ant-modal-body {
  padding: 40px 40px !important;
}

.ant-modal-content .ant-modal-header {
  margin-bottom: 0px;
}

.ant-modal-content .ant-modal-footer {
  margin-top: 0px;
}

.tableActionBtn {
  color: #1890FF;
  cursor: pointer;
}

.tableTitle:hover {
  text-decoration: underline;
}
.ant-badge.ant-badge-status .ant-badge-status-dot {
  width: 8px;
  height: 8px;
}

.ant-table-wrapper .ant-table-pagination.ant-pagination {
  margin: 16px 0 0 0;
}